package com.cy.pet.cart.feign;

import com.cy.pet.common.pojo.Item;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @description:
 * @author: LiuXingYu
 * @date: 2021/10/8 10:42
 */
@FeignClient(name = "pet-itemservice",contextId = "remoteItemService")
public interface RemoteItemService {
    @GetMapping("/item/getItemById/{itemId}")
    Item getItemById(@PathVariable("itemId") Integer itemId);
}
